package com.stu.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2023-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class StudentTui implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ExcelIgnore
    private Long id;
    @ExcelProperty("学号")
    private Long sid;
    @ExcelProperty(value = "学生姓名",index = 0)
    private String name;
    @ExcelProperty("学校")
    private String school;
    @ExcelProperty("专业")
    private String major;
    @ExcelProperty("入学年份")
    private Integer grade;
    @ExcelIgnore
    private Long clazzId;
    @ExcelProperty("班级名")
    private String clazzName;
    @ExcelProperty("状态")
    private String status;
    @ExcelProperty("去向")
    private String gone;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //更新时间
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建人
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    //修改人
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    //退费原因
    private String text;

    /**
     * 逻辑删除 0:可用1:逻辑删除
     */
    @ExcelIgnore
    @TableLogic(value = "1",delval = "0")
    private Integer isDeleted;


}
